package biz

import (
	"github.com/bytedance/sonic"
	"github.com/google/wire"
)

var ProviderBiz = wire.NewSet(
	NewUserUseCase,
)

type User struct {
	Id       string `json:"id,omitempty"`
	Account  string `json:"account,omitempty"`
	NickName string `json:"nick_name,omitempty"`
	Age      int32  `json:"age,omitempty"`
	Gender   string `json:"gender,omitempty"`
	Remark   string `json:"remark,omitempty"`
}

func (u *User) MarshalBinary() ([]byte, error) {
	return sonic.Marshal(u)
}

func (u *User) UnmarshalBinary(data []byte) error {
	return sonic.Unmarshal(data, u)
}
